/*rzxqFeC1Q4Nf7h12KpqtZb+Z1uDCjMDQGP1rZh+phYW/sz4pUM194YpvYLdCpMZm*/
/*
 * @Author: xiahui 
 * @PageInfo: 卡片修改 
 * @Date: 2019-01-16 13:21:06 
 * @Last Modified by: xiahui
 * @Last Modified time: 2019-01-25 14:14:43
 */
import { UISTATUS, URL, AREA, FIELDS } from '../../constance';
import { ajax } from 'nc-lightapp-front';
import { buttonControl } from '../viewControl/buttonControl';

export default function(props) {
	//增加数据权限校验
	ajax({
		url: URL.edit,
		data: props.form.getFormItemsValue(AREA.cardFormId, FIELDS.pk_ct_pu).value,
		success: (res) => {
			if (res.success) {
				props.setUrlParam({ status: UISTATUS.edit });
				props.cardTable.selectAllRows(AREA.cardTableId, false); // 取消浏览态表体勾选
				buttonControl.call(this, props);
			}
		}
	});
}

/*rzxqFeC1Q4Nf7h12KpqtZb+Z1uDCjMDQGP1rZh+phYW/sz4pUM194YpvYLdCpMZm*/